package ooday02;
/*人类（父类）*/
public class Person {
    //成员变量
    String name;
    int age;
    String address;

//super
    Person(){}
    Person(String name,int age, String address){
        this.age=age;
        this.name=name;
        this.address=address;
    }




    //方法
    void eat(){
        System.out.println(name+"正在吃饭.....");
    }
    void sleep(){
        System.out.println(name+",正在睡觉....");
    }
    void sayHi(){
        System.out.println("我叫"+name+",今年："+age+"岁了，家住"+address);
    }


}
